Arrangements and Derangements with repetition